package com.joshua.spring.annotation;

import java.lang.annotation.*;

/**
 * projectName dragon-cloud
 * package com.joshua.spring.annotation
 * classname  AroundLogger
 * <p>
 * description 环绕日志记录
 * </p>
 *
 * @author <a href="mailto:joshualwork@163.com">joshua_liu</a>
 * @date 2020/10/8 17:07
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AroundLogger {
    AroundType value() default AroundType.ALL;

    String[] env() default "dev";

    public enum AroundType {
        //前置日志
        BEFORE,
        AFTER,
        AROUND,
        ALL
    }
}
